package com.baidu.mpks.schema.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
public class UserSchemaAll extends UserSchema {

    private Integer id;
    @JsonProperty("@id")
    private String atId;
    @JsonProperty("@type")
    private String atType;
    private String schemaId;
    private Integer pid;
    private String subClass;
    private String supClass;
    private Set<String> subClassOf;
    private Set<String> supClassOf;
    private Set<String> properties;
    private Integer type;
    private Integer edit;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date update_time;
    private String updateBy;
    private Map<String, String> comment;
    private Map<String, String> label;
    private List<String> domain;
    private List<String> range;
    private List<String> alias;
    private Map<String, String> constraint;
    private String rule;
    private String extend;
    private Integer index;
    private Integer weight;
    private String analysis;
    private Integer indexEdit;
    @JsonProperty("enum")
    private List<String> enumValues;
    private String[] altLabel;
    private String unitType;
    private String dataType;
    private Map<String, Object> structValue;

    public UserSchemaAll() {
    }
}
